<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./lib/vue-2.4.0.js"></script>
    <link rel="stylesheet" href="./lib/bootstrap-3.3.7.css">
    <link rel="stylesheet" href="./lib/animate.css">
       
</head>
<body>
    <div id="app">
        <input type="button" value="toggle" @click="flage=!flage">
        <transition enter-active-class="animated headshake" leave-active-class="animated shake" :duration="400">
                <h3 v-if="flage">这是一个动画</h3>
        </transition>
    </div>
    <script>
        var vm=new Vue({
            el:"#app",
            data:{
                flage:false,
                flage2:false,

            },
            methods: {

                
            },
        })
    </script>
</body>
</html>